package doc;

import cn.demoncat.util.mongo.doc.BaseGeoDoc;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 用户坐标
 * 
 * @author 延晓磊
 *
 * @since 2019年5月15日
 */
@CompoundIndex(name="localtion_name_idx", def = "{location:'2dsphere',name:1}", background = true)
@Document("userGeo")
@Data
public class UserGeoDoc extends BaseGeoDoc {

	@Id
	private Long id;
	// 名称
	private String name;

}